package com.hist.medical_treatment.service.serviceImpl;

import java.sql.Timestamp;
import java.util.Date;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hist.medical_treatment.dao.RegisterDao;
import com.hist.medical_treatment.entity.Register;
import com.hist.medical_treatment.service.RegisterService;

@Service
public class RegisterSerivceImpl implements RegisterService{
     @Autowired
     RegisterDao dao;
	@Override
	public String nextRegister() {
		// TODO Auto-generated method stub
		return dao.nextRegister();
	}
	@Override
	public Register getRegisterByCaseNumber(String caseNumber) {
		// TODO Auto-generated method stub
		return dao.getRegisterByCaseNumber(caseNumber);
	}
	@Override
	public void insertRegister(Integer id,String caseNumber, String realName, Integer gender, Date birthDate, Integer age,
			String ageType, Date visitDate, String noon, Integer deptID, Integer userID, Integer registLeID,
			Integer settleID,Integer registerID) {
		// TODO Auto-generated method stub
		dao.insertRegister(id,caseNumber, realName, gender, birthDate, age, ageType, visitDate, noon, deptID, userID, registLeID, settleID,registerID);
	}
	@Override
	public Integer getMaxID() {
		return dao.getMaxID();
	}

}
